import routeComponentName from '@/config/route-component-name'

const serviceRouter = [
  {
    path: '/regularCheck',
    component: () => import('@/layout/index.vue'),
    name: 'regularCheck',
    meta: {
      title: '定期巡检',
      icon: 'Cpu',
    },
    redirect: '/regularCheck/board',
    children: [
      {
        path: 'board',
        component: () => import('@/views/servicer/board/index.vue'),
        name: 'board',
        meta: {
          title: '维保看板',
          keepAlive: true,
          componentName: routeComponentName.regularInspection.maintenanceDashboard,
        },
      },
      {
        path: 'list',
        component: () => import('@/views/servicer/list/index.vue'),
        name: 'serList',
        meta: {
          title: '维保列表',
          keepAlive: true,
          componentName: routeComponentName.regularInspection.maintenanceList,
        },
      },
      {
        path: 'monitor',
        component: () => import('@/views/servicer/monitor/index.vue'),
        name: 'monitor',
        meta: {
          title: '维保监控',
          keepAlive: true,
          componentName: routeComponentName.regularInspection.maintenanceMonitor,
        },
      },
      // {
      //   path: 'set',
      //   component: () => import('@/views/servicer/set/index.vue'),
      //   name: 'Set',
      //   meta: { title: '维保设置', keepAlive: true },
      // },
    ],
  },
]

export default serviceRouter
